package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created  on 2017/12/27.
 *
 * @author helin
 * 选手
 */

public class PlayerBean implements Parcelable {

    /**
     * ID
     */
    private Integer id;

    /**
     * 活动ID
     */
    private Integer activityId;

    /**
     * 编号
     */
    private String code;

    /**
     * 联系电话
     */
    private String playerPhone;

    /**
     * 选手名称
     */
    private String playerName;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 报名图片地址
     */
    private String applyUrl;

    /**
     * 来源
     */
    private Integer origin;

    /**
     * 创建人
     */
    private String creator;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPlayerPhone() {
        return playerPhone;
    }

    public void setPlayerPhone(String playerPhone) {
        this.playerPhone = playerPhone;
    }

    public String getPlayerName() {
        return playerName;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getApplyUrl() {
        return applyUrl;
    }

    public void setApplyUrl(String applyUrl) {
        this.applyUrl = applyUrl;
    }

    public Integer getOrigin() {
        return origin;
    }

    public void setOrigin(Integer origin) {
        this.origin = origin;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeValue(this.activityId);
        dest.writeString(this.code);
        dest.writeString(this.playerPhone);
        dest.writeString(this.playerName);
        dest.writeValue(this.status);
        dest.writeString(this.createTime);
        dest.writeString(this.applyUrl);
        dest.writeValue(this.origin);
        dest.writeString(this.creator);
    }

    public PlayerBean() {
    }

    protected PlayerBean(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.activityId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.code = in.readString();
        this.playerPhone = in.readString();
        this.playerName = in.readString();
        this.status = (Integer) in.readValue(Integer.class.getClassLoader());
        this.createTime = in.readString();
        this.applyUrl = in.readString();
        this.origin = (Integer) in.readValue(Integer.class.getClassLoader());
        this.creator = in.readString();
    }

    public static final Creator<PlayerBean> CREATOR = new Creator<PlayerBean>() {
        @Override
        public PlayerBean createFromParcel(Parcel source) {
            return new PlayerBean(source);
        }

        @Override
        public PlayerBean[] newArray(int size) {
            return new PlayerBean[size];
        }
    };
}
